export default {
  'zh-cn': {
    page: {
      predefineRoutePage: {
        pageNavigationTitle: '系统页面导航功能简介',
        pageNavigationDescription: [
          '系统中实际上是在使用一个页面导航组件在管理页面跳转，默认情况下并不具备通过地址栏路由地址打开指定页面的功能；刷新浏览器页面之后会停留在最后一个打开的tab，是因为基于本地缓存了页面信息；所以不论如何修改路由地址，打开的时候总是显示最后一个打开的标签页面；',
          '基于缓存管理实现的路由功能，优点是页签之间的切换，以及页面之间跳转的时候，能够自动地管理页面的状态，页面的状态不会因为路由跳转出现状态丢失的问题，只有当刷新浏览器、关闭页签、页面被回退，下次重新打开的时候才会重新初始化状态；',
          '比如从列表页面操作筛选，排序之后跳转到详情页面，再从详情页面返回时，列表页面的筛选排序等状态仍然是最后操作的状态；同样的从详情跳转到另一个详情，再返回时也会保留相应的状态，整个过程是自动管理的，实际上就是在操作一个二维数组；打开新的页签就是增加一个数组，页签中打开页面就是往数组中push页面，页面返回则是pop页面；而刷新页面，则是令页面组件的key变化；',
          '在这个基础上，还可以实现同一个页面同时打开多次的效果，比如可以右击页签，复制一个页签进行操作；',
        ],
        pagePredefineRouteTitle: '预定义路由',
        pagePredefineRouteIntroduce: '为了解决无法通过路由打开指定页面的问题，设计了一种预定义路由API，开发者可以通过API预定义定义路由，当用户访问这些预定义路由时，就能打开指定的页面；目前一共有五种预定义路由：',
        pagePredefineRouteDescription: [
          'private 路由：示例：/private/order/:privateCode，用户访问这种类型的路由时，路由地址末尾必须带上查询参数【?token=admin】，token为用户登录之后的标识；缺少token参数或者token过期无效等会显示403无权访问页面，展示页面的时候会隐藏侧边菜单栏以及顶部导航栏；',
          'public 路由：示例：/public/order/:publicCode，同 private 路由，不同之处在于不需要,不会检查token参数；',
          'home 路由：分两种路由，一个是【/home/menu/:menuCode】，另一个是【/home/path/:pagePath】，分别代表可以通过菜单编码menuCode或者页面路径pagePath打开相应的页面；可以带token参数，如果token参数缺失或者已经过期，则先重定向到login路由登录完毕之后再打开页面；会显示系统的侧边菜单栏以及顶部导航栏；',
          'page 路由：示例：/page/order/:pageCode，类似于private路由，但是会从缓存取token进行检查，token过期或者无效会重定向到login路由登录完毕之后再打开页面；这种适用于系统中需要打开一个新的浏览器页签来展示某个页面，比如打开一个新的浏览器页签展示一个报表页面来打印，不显示顶部导航栏以及侧边菜单栏；',
          'login 路由：示例：/login，打开登录页面',
        ],
        pagePredefineRouteDescription2: [
          '预定义路由可以扩展，开发者可以根据需要通过 microApp.route.defineLayoutRoute 定义更多的预定义路由，预定义路由的功能，更像是其他系统中路由Route以及页面布局Layout的结合体；，路由Route负责控制展示哪个页面，页面布局Layout负责控制是否需要token鉴权，是否需要展示侧边菜单栏以及顶部导航栏等等；',
          '可以看到路由设计上与其他前端系统路由设计有区别，一般其他系统是所有的页面都能够访问，但是对所有页面进行拦截鉴权，仅对少部分public类型的页面放开鉴权；这里是所有页面都不能够直接访问，如果某些页面需要被通过路由访问需要定义；',
        ],
        tip: '以下示例功能建议打开无痕浏览器访问测试',
        privateRouteTitle: 'Private 路由',
        defineRoute: '定义路由',
        accessRoute: '访问路由',
        publicRouteTitle: 'Public 路由',

        homeRouteMenuCodeTitle: 'Home 路由: menuCode',
        homeRoutePagePathTitle: 'Home 路由: pagePath',
        homeRoutePageDescription:[
          '这里是一个示例，将文件夹 pages/home-path 目录下的所有页面放出来，都可以通过这个 【/home/path/:pagePath】 路由访问，访问之后会将 :pagePath 拼接到 pages/home-page 末尾，只要这个页面文件存在就可以访问；',
          '通过这种方式，可以批量地将某个文件夹下的页面定义路由出来供路由直接访问',
        ],
        loginRouteTitle: 'Login 路由',
        loginRoutePageDescription:[
          '如果这个前端工程中存在有多个系统，不同的系统使用不同的登录页面，那么你可以定义多个这样的login路由，比如crmLogin, erpLogin等等；'
        ]
      },
    },
  },
  'en-us': {
    page: {
      predefineRoutePage: {
        pageNavigationTitle: 'Introduction to System Page Navigation',
        pageNavigationDescription: [
          'In the system, a page navigation component is actually used to manage page redirection, and by default, it does not have the function of opening a specified page by routing addresses through the address bar; After refreshing the browser page, it will stay at the last open tab because the page information is cached locally; So no matter how the routing address is modified, the last opened label page will always be displayed when opened;',
          'The routing function based on cache management has the advantage of switching between tabs and automatically managing the status of pages when jumping between them. The status of pages will not be lost due to routing jumps, and will only be reinitialized when the browser is refreshed, the tab is closed, the page is rolled back, and the next time it is reopened;',
          'For example, when filtering from the list page, jumping to the details page after sorting, and then returning from the details page, the filtering and sorting status of the list page remains the last operation status; Similarly, when jumping from a detail to another detail and then returning, the corresponding status will also be retained, and the entire process is automatically managed, essentially operating a two-dimensional array; Opening a new tab adds an array, opening a page in the tab pushes the page into the array, and returning the page is a pop page; Refreshing the page changes the key of the page component;',
          'On this basis, it is also possible to achieve the effect of opening the same page multiple times at the same time, such as right clicking on a tab and copying a tab for operation;',
        ],
        pagePredefineRouteTitle: 'Predefine Page Route',
        pagePredefineRouteIntroduce: 'In order to solve the problem of not being able to open a specified page through routing, a predefined routing API has been designed. Developers can define routes through the API, and when users access these predefined routes, they can open the specified page; There are currently five predefined routes:',
        pagePredefineRouteDescription: [
          'Private route: Example:/private/order/: privateCode. When a user accesses this type of routing, the routing address must be accompanied by the query parameter [? Token=admin] at the end, where token is the identifier of the user after logging in; Missing token parameters or invalid tokens will display 403 unauthorized access to the page. When displaying the page, the side menu bar and top navigation bar will be hidden;',
          'Public route: Example:/public/order/: publicCode, similar to private routing, differs in that it is not required and does not check token parameters;',
          'Home route: There are two types of routing, one is [/home/menu/: menuCode], and the other is [/home/path/: pagePath], which respectively represent that the corresponding page can be opened through menu encoding menuCode or page path pagePath; Token parameters can be included. If the token parameters are missing or have expired, redirect to the login router first and then open the page after logging in; It will display the system\'s side menu bar and top navigation bar;',
          'Page route: Example:/page/order/: pageCode, similar to private routing, but will retrieve tokens from the cache for checking. If the token expires or is invalid, it will be redirected to the login router after logging in and then opening the page; This is suitable for systems that require opening a new browser tab to display a certain page, such as opening a new browser tab to display a report page for printing, without displaying the top navigation bar and side menu bar;',
          'Login route: Example:/login, open the login page',
        ],
        pagePredefineRouteDescription2: [
          'Predefined routes can be extended, and developers can define more predefined routes as needed through microApp. route. defineLayoutRoute. The function of predefined routes is more like a combination of route and page layout in other systems;, The router is responsible for controlling which page to display, the page layout is responsible for controlling whether token authentication is required, whether the side menu bar and top navigation bar need to be displayed, etc;',
          'It can be seen that the routing design is different from that of other front-end systems. Generally, other systems allow access to all pages, but intercept and authenticate all pages, only allowing a small number of public-type pages to be authenticated. Here, all pages cannot be directly accessed, and if some pages need to be accessed through routing, they need to be defined;',
        ],
        tip: 'The following example function suggests opening a private browser to access the test',
        privateRouteTitle: 'Private Route',
        defineRoute: 'define route',
        accessRoute: 'access route',
        publicRouteTitle: 'Public Route',

        homeRouteMenuCodeTitle: 'Home Route: menuCode',
        homeRoutePagePathTitle: 'Home Route: pagePath',
        homeRoutePageDescription:[
          'Here is an example. All pages in the folder pages/home-path directory can be accessed through the route /home/path/:pagePath. After accessing, the :pagePath will be spliced to the end of pages/home-page. As long as the page file exists, it can be accessed;',
          'Through this method, it is possible to batch route the page definitions under a certain folder for direct access by the router',
        ],
        loginRouteTitle: 'Login Route',
        loginRoutePageDescription:[
          'If there are multiple systems in this front-end project and different systems use different login pages, you can define multiple such login routes, such as crmLogin, erpLogin, and so on;'
        ]
      },
    }
  },
};
